// createStore 是由redux提供的用来初始化store的函数;applyMiddleware是用来添加我们需要的中间件的
import {createStore, applyMiddleware} from 'redux';
import userReducer from "./reducer";
import thunk from 'redux-thunk'

const store = createStore(
  userReducer,
  applyMiddleware(thunk)
)
export default store;